package com.anhdt.model;

import com.anhdt.dao.CategoriesDAO;
import com.anhdt.vo.CategoriesVO;
import java.sql.SQLException;

public class Categories {
    
   private static Categories Categories;
   
   private Categories(){
   }
   
   public static Categories getInstance() {
        if (Categories == null) {
            Categories = new Categories();
        }
        return Categories;
    }

   
    public CategoriesVO getCateDetail(int id) throws SQLException {
        CategoriesDAO cateDao = CategoriesDAO.getInstance();
        return cateDao.getCateDetail(id);
    }
}
